package sdfi.lee.Format;

import java.util.Calendar;
import java.util.Date;

import sdfi.lee.Logger.MyLogger;

public class StringDateChange {
	public static Date  GetDateFromString(String stringdate)
	{
		String year=stringdate.substring(0,4);
		String month=stringdate.substring(4,6);
		String day=stringdate.substring(6, 8);
		String hour=stringdate.substring(8,10);
		String min=stringdate.substring(10,12);
		String second=stringdate.substring(12);
		Date date=new Date();
		Calendar calendar=Calendar.getInstance();
		calendar.set(Calendar.YEAR, Integer.valueOf(year));
		calendar.set(Calendar.MONTH, Integer.valueOf(month));
		calendar.set(Calendar.DAY_OF_MONTH, Integer.valueOf(day));
		calendar.set(Calendar.HOUR_OF_DAY, Integer.valueOf(hour));
	
		return calendar.getTime();
	}
}
